<template>
  <div class="footer">
    <ul>
      <li><router-link to="/home">消息</router-link></li>
      <li><router-link to="/tong">精选</router-link></li>
      <li><router-link to="/cart">购物车</router-link></li>
      <li><router-link to="/mine">我的</router-link></li>
    </ul>
  </div>
</template>

<script>
export default {
  components: {},
  data() {
    return {};
  },
  computed: {},
  watch: {},

  methods: {},
  created() {},
  mounted() {},
};
</script>
<style scoped>
.footer {
  width: 100%;
  height: 40px;
  position: fixed;
  left: 0;
  bottom: 0;
  background-color: #fff;
}
.footer ul li {
  float: left;
  width: 25%;
  text-align: center;
  line-height: 40px;
  height: 40px;
  text-align: center;
}
/* router-link生成 */
.footer ul li a {
  display: block;
  height: 40px;
  line-height: 40px;
  text-decoration: none;
}
.footer ul li a.myactive {
  background: red;
  color: #fff;
}
</style>